package com.bit.deom.Controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/log")
public class LogController {

    @RequestMapping("/print")
    public String log() {
        log.warn("warn-----日志");
        log.info("log-----日志");
        log.error("error-----日志"); 
        log.debug("debug-----日志");

        log.debug("debug-----日志");
        log.trace("trace-----日志");
        return "完成";
    }
}
